#include<cstdio>
#include<iostream>
using namespace std;
class my
{
	int _a ;
public: 
	virtual void print()
	{
		cout << '1'<< endl;
	}
};
class he : public my
{
	int _b;
public:
	void print()
	{
		cout << '2' << endl;
	}
};
int main()
{
	int a = 0;
	cout << (&a) << endl;
	static int b = 0;
	cout << "静态区"<< (&b) << endl;
	int * heh = new int;
	printf("堆%p\n",heh);
	const char * in = "helo";
	printf("常量区%p",in);
	he he1;
	int * he2 = (int*)&he1;
	printf("结构体的地址%p\n",*he2);
	return 0;
}	
